package org.zdp.plugin.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import org.zdp.plugin.Activator;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		System.out.println("initializeDefaultPreferences...");
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.PK_LOCAL_LIB_CENTER, PreferenceConstants.PV_LOCAL_LIB_CENTER);
		store.setDefault(PreferenceConstants.PK_TEAM_CLASSPATH,PreferenceConstants.PV_TEAM_CLASSPATH);
		store.setDefault(PreferenceConstants.PK_LOCAL_BUILD_BASE,PreferenceConstants.PV_LOCAL_BUILD_BASE);
		store.setDefault(PreferenceConstants.PK_LOCAL_RELEASE_CENTER,PreferenceConstants.PV_LOCAL_RELEASE_CENTER);
		store.setDefault(PreferenceConstants.PK_LOCAL_CODE_CENTER,PreferenceConstants.PV_LOCAL_CODE_CENTER);
		store.setDefault(PreferenceConstants.P_BOOLEAN, true);
		store.setDefault(PreferenceConstants.P_CHOICE, "choice2");
	}

}
